// 通用样式

@com-green:#31c27c;
@com-gray:rgba(255,255,255,.5);
.text-clip {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}





html {
    // 750设计稿中 1REM = 100px
    font-size: 100px;
}

html,
body,
#app {
    height: 100%;
    overflow: hidden;
}

#app {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
}

.back-img-box {
    position: absolute;
    z-index: -2;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('../images/myDream.jpg') no-repeat;
    background-size: cover;
    // 设置模糊度
    filter: blur(10px);
}

.back-mark-box {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
}

.header-box,
.footer-box {
    box-sizing: border-box;
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
}

.header-box {
    top: 0;
    height: 2rem;
}

.footer-box {
    bottom: 0;
    height: 2rem;
}

.lyric-box {
    box-sizing: border-box;
    padding: 2rem 0;
    height: 100%;
    overflow: hidden;
}

/* 头部区域 */
.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .3rem;

    .play-btn {
        margin-left: 0.1rem;
        width: .7rem;
        height: .7rem;
        background: url("../images/music.svg") no-repeat;
        background-size: 100% 100%;

        &.move {
            animation: manjinghong 1s linear 0s infinite both;
        }
    }

    .base-info {
        flex-grow: 1; //剩余空间全部占用
        display: flex;

        .protrait {
            height: 1.4rem;
            width: 1.4rem;
        }
        .info{
            max-width: 4.6rem;
            flex-grow: 1;
            margin-left: .1rem;
        }

        .title {
            line-height: .7rem;
            color: #fff;
            font-size: .34rem;
            .text-clip;
        }

        .author {
            line-height: .3rem;
            color: #fff;
            .text-clip;
        }
    }

}

@keyframes manjinghong {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

// 主体歌词
.lyric-box{
    .container{
        height: 100%;
        overflow: hidden;
    }
    .wrapper{
        transform: translateY(0);
        transition: transform .3s;
    p{
        height: 1rem;
        line-height: 1rem;
        text-align: center;
        font-size: .3rem;
        color: @com-gray;

        &.active{
            color: @com-green;
            transition: color .3s;
        }
    }
}
}
.footer-box{
    padding: 0.2rem;


    .progress{
       display: flex;
       align-items: center;

       .current,.duration{
        width: .8rem;
        line-height: .72rem;
         text-align: center;
         font-size: .24rem;
         color: @com-gray;
       }
       .back-bar{
        position: relative;
        flex-grow: 1;
        height: .04rem;
        background: @com-gray;

        .already{
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: @com-green;
        }
       }
    }
    .download-btn{
        display: block;
        margin: 0 auto;
        border-radius: .5rem;
        width: 4.26rem;
        height: 1rem;
        line-height: 1rem;
        text-align: center;
        font-size: .36rem;
        color: #fff;
        text-indent: .4rem;
        background: url("../images/sprite_play.png") @com-green no-repeat;
        background-size: .8rem 7rem;
        background-position: .2rem -5.83rem;
    }
}